php check if date is older than 1 month

52

php check if date is older than 1 month -

 if(strtotime('2011-08-19 17:14:40') < strtotime('-30 days')) {
     // this is true
 }

Comments

Submit
0 Comments